<?php

class Myfb_Action extends Portlet {

  protected $_APP_ID;
  
  protected $_myfb_id;

  public function init(){
    Myfb_Render::boot($this);
  }

  public function getAppId() {
    if ($this->_APP_ID == NULL) {
      throw new Exception('must defined $app name first');
    }
    return $this->_APP_ID;
  }

  public function setMyfbId($myfb_id){
    $this->_myfb_id =  $myfb_id;
  }

  public function getMyfbId() {
    if ($this->_myfb_id == NULL) {
      throw new Exception('You Must Boot this action before');
    }
    return $this->_myfb_id;
  }
}